import QtQuick
import QtQuick.Controls
Item {
    id: knifeParameterWindow
    width: 1900
    height: 920

    Component.onCompleted: {
        // Cpp_PLC.currentPageNumber = 4
        Cpp_PLC.enter_knife_Axis_Window();
    }

    property real rectangleCount: 9
    property real firstRectWidth: 230
    property real remainingWidth : width-firstRectWidth
    property real otherRectWidth: remainingWidth /(rectangleCount-1)
    property real labelFontSize: 30

    NumberKeyboard{
        id: knifeAxisKeyboard
        isDirectOverwrite: false // 关闭直接覆盖
    }

    Rectangle{
        anchors.fill: parent
        radius: 5
        // // //border.width: 1
        // border.color: "black"
        color: "#87CEEB"
    }

    // 水平排列所有矩形
    Row {
        id: rowLayout
        width: parent.width
        height: parent.height
        // spacing: spacing  // 应用间距

        // 第一个矩形（固定宽度）
        Rectangle {
            id: paramaterNameList
            width: firstRectWidth
            height: parent.height
            color: "transparent"
            // border.color: "#555"
            // //border.width: 1
            radius: 5

            Column{
                anchors.top: parent.top
                anchors.topMargin: 50
                anchors.horizontalCenter: parent.horizontalCenter
                spacing: 5

                Rectangle{
                    width: 220;height: 50;color: "transparent";
                    Text{anchors.centerIn: parent;font.pixelSize: labelFontSize;color: "black";
                        text: qsTr("每转脉冲数");}
                }
                Rectangle{
                    width: 220;height: 50;color: "transparent";
                    Text{anchors.centerIn: parent;font.pixelSize: labelFontSize;color: "black";
                        text: qsTr("减速比");}
                }
                Rectangle{
                    width: 220;height: 50;color: "transparent";
                    Text{anchors.centerIn: parent;font.pixelSize: labelFontSize;color: "black";
                        text: qsTr("每转位移量");}
                }
                // Rectangle{
                //     width: 220;height: 50;color: "transparent";
                //     Text{anchors.centerIn: parent;font.pixelSize: labelFontSize;color: "black";
                //         text: qsTr("零点位置");}
                // }
                // Rectangle{
                //     width: 220;height: 50;color: "transparent";
                //     Text{anchors.centerIn: parent;font.pixelSize: labelFontSize;color: "black";
                //         text: qsTr("零点补偿");}
                // }
                Rectangle{
                    width: 220;height: 50;color: "transparent";
                    Text{anchors.centerIn: parent;font.pixelSize: labelFontSize;color: "black";
                        text: qsTr("加速时间");}
                }
                Rectangle{
                    width: 220;height: 50;color: "transparent";
                    Text{anchors.centerIn: parent;font.pixelSize: labelFontSize;color: "black";
                        text: qsTr("减速时间");}
                }
                Rectangle{
                    width: 220;height: 50;color: "transparent";
                    Text{anchors.centerIn: parent;font.pixelSize: labelFontSize;color: "black";
                        text: qsTr("正极限");}
                }
                Rectangle{
                    width: 220;height: 50;color: "transparent";
                    Text{anchors.centerIn: parent;font.pixelSize: labelFontSize;color: "black";
                        text: qsTr("负极限");}
                }
                Rectangle{
                    width: 220;height: 50;color: "transparent";
                    Text{anchors.centerIn: parent;font.pixelSize: labelFontSize;color: "black";
                        text: qsTr("手动低速");}
                }
                Rectangle{
                    width: 220;height: 50;color: "transparent";
                    Text{anchors.centerIn: parent;font.pixelSize: labelFontSize;color: "black";
                        text: qsTr("手动高速");}
                }
                Rectangle{
                    width: 220;height: 50;color: "transparent";
                    Text{anchors.centerIn: parent;font.pixelSize: labelFontSize;color: "black";
                        text: qsTr("自动速度");}
                }
                // Rectangle{
                //     width: 220;height: 50;color: "transparent";
                //     Text{anchors.centerIn: parent;font.pixelSize: labelFontSize;color: "black";
                //         text: qsTr("实时速度");}
                // }

            }

        }

        // 第二个矩形
        Rectangle {
            width: otherRectWidth
            height: parent.height
            color: "transparent"
            // border.color: "#555"
            // //border.width: 1
            radius: 5

            Rectangle{
                width: 160;height: 50;color: "transparent";
                anchors.horizontalCenter: parent.horizontalCenter
                anchors.top: parent.top
                Text{anchors.centerIn: parent;font.pixelSize: labelFontSize;color: "black";
                    text: qsTr("前上刀1");}
            }

            Column{
                anchors.top: parent.top
                anchors.topMargin: 50
                anchors.horizontalCenter: parent.horizontalCenter
                spacing: 5

                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.FU_knife_1_PPR
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4000,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.FU_knife_1_RR
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4004,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.FU_knife_1_DPR
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4008,value);
                    }
                }
                // NumberInput{        // 前上刀1辅工_目标位置
                //     inputWidth:  180
                //     inputHeight: 50
                //     keyboard: knifeAxisKeyboard
                //     text: Cpp_PLC.FU_knife_1_ZP
                //     onEditingFinished: function(value){
                //         Cpp_PLC.write_into_tcp_Hold32(4012,value);
                //     }
                // }
                // NumberInput{        // 前上刀1辅工_目标位置
                //     inputWidth:  180
                //     inputHeight: 50
                //     keyboard: knifeAxisKeyboard
                //     text: Cpp_PLC.FU_knife_1_ZOC
                //     onEditingFinished: function(value){
                //         Cpp_PLC.write_into_tcp_Hold32(4016,value);
                //     }
                // }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.FU_knife_1_T_Acc
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4020,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.FU_knife_1_T_Dec
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4024,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.FU_knife_1_PL
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4028,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.FU_knife_1_NL
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4032,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.FU_knife_1_MLS
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4052,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.FU_knife_1_MHS
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4056,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.FU_knife_1_AS
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4060,value);
                    }
                }
                // NumberInput{        // 前上刀1辅工_目标位置
                //     inputWidth:  180
                //     inputHeight: 50
                //     keyboard: knifeAxisKeyboard
                //     text: Cpp_PLC.FU_knife_1_RTS
                //     onEditingFinished: function(value){
                //         Cpp_PLC.write_into_tcp_Hold32(4064,value);
                //     }
                // }
            }


        }
        // 第二个矩形
        Rectangle {
            width: otherRectWidth
            height: parent.height
            color: "transparent"
            // border.color: "#555"
            // //border.width: 1
            radius: 5

            Rectangle{
                width: 160;height: 50;color: "transparent";
                anchors.horizontalCenter: parent.horizontalCenter
                anchors.top: parent.top
                Text{anchors.centerIn: parent;font.pixelSize: labelFontSize;color: "black";
                    text: qsTr("前上刀2");}
            }

            Column{
                anchors.top: parent.top
                anchors.topMargin: 50
                anchors.horizontalCenter: parent.horizontalCenter
                spacing: 5

                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.FU_knife_2_PPR
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4100,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.FU_knife_2_RR
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4104,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.FU_knife_2_DPR
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4108,value);
                    }
                }
                // NumberInput{        // 前上刀1辅工_目标位置
                //     inputWidth:  180
                //     inputHeight: 50
                //     keyboard: knifeAxisKeyboard
                //     text: Cpp_PLC.FU_knife_2_ZP
                //     onEditingFinished: function(value){
                //         Cpp_PLC.write_into_tcp_Hold32(4112,value);
                //     }
                // }
                // NumberInput{        // 前上刀1辅工_目标位置
                //     inputWidth:  180
                //     inputHeight: 50
                //     keyboard: knifeAxisKeyboard
                //     text: Cpp_PLC.FU_knife_2_ZOC
                //     onEditingFinished: function(value){
                //         Cpp_PLC.write_into_tcp_Hold32(4116,value);
                //     }
                // }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.FU_knife_2_T_Acc
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4120,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.FU_knife_2_T_Dec
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4124,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.FU_knife_2_PL
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4128,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.FU_knife_2_NL
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4132,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.FU_knife_2_MLS
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4152,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.FU_knife_2_MHS
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4156,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.FU_knife_2_AS
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4160,value);
                    }
                }
                // NumberInput{        // 前上刀1辅工_目标位置
                //     inputWidth:  180
                //     inputHeight: 50
                //     keyboard: knifeAxisKeyboard
                //     text: Cpp_PLC.FU_knife_2_RTS
                //     onEditingFinished: function(value){
                //         Cpp_PLC.write_into_tcp_Hold32(4164,value);
                //     }
                // }
            }
        }
        // 第二个矩形
        Rectangle {
            width: otherRectWidth
            height: parent.height
            color: "transparent"
            // border.color: "#555"
            // //border.width: 1
            radius: 5

            Rectangle{
                width: 160;height: 50;color: "transparent";
                anchors.horizontalCenter: parent.horizontalCenter
                anchors.top: parent.top
                Text{anchors.centerIn: parent;font.pixelSize: labelFontSize;color: "black";
                    text: qsTr("后上刀1");}
            }

            Column{
                anchors.top: parent.top
                anchors.topMargin: 50
                anchors.horizontalCenter: parent.horizontalCenter
                spacing: 5

                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.BU_knife_1_PPR
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4400,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.BU_knife_1_RR
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4404,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.BU_knife_1_DPR
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4408,value);
                    }
                }
                // NumberInput{        // 前上刀1辅工_目标位置
                //     inputWidth:  180
                //     inputHeight: 50
                //     keyboard: knifeAxisKeyboard
                //     text: Cpp_PLC.BU_knife_1_ZP
                //     onEditingFinished: function(value){
                //         Cpp_PLC.write_into_tcp_Hold32(4412,value);
                //     }
                // }
                // NumberInput{        // 前上刀1辅工_目标位置
                //     inputWidth:  180
                //     inputHeight: 50
                //     keyboard: knifeAxisKeyboard
                //     text: Cpp_PLC.BU_knife_1_ZOC
                //     onEditingFinished: function(value){
                //         Cpp_PLC.write_into_tcp_Hold32(4416,value);
                //     }
                // }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.BU_knife_1_T_Acc
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4420,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.BU_knife_1_T_Dec
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4424,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.BU_knife_1_PL
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4428,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.BU_knife_1_NL
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4432,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.BU_knife_1_MLS
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4452,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.BU_knife_1_MHS
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4456,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.BU_knife_1_AS
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4460,value);
                    }
                }
                // NumberInput{        // 前上刀1辅工_目标位置
                //     inputWidth:  180
                //     inputHeight: 50
                //     keyboard: knifeAxisKeyboard
                //     text: Cpp_PLC.BU_knife_1_RTS
                //     onEditingFinished: function(value){
                //         Cpp_PLC.write_into_tcp_Hold32(4464,value);
                //     }
                // }
            }
        }
        // 第二个矩形
        Rectangle {
            width: otherRectWidth
            height: parent.height
            color: "transparent"
            // border.color: "#555"
            // //border.width: 1
            radius: 5

            Rectangle{
                width: 160;height: 50;color: "transparent";
                anchors.horizontalCenter: parent.horizontalCenter
                anchors.top: parent.top
                Text{anchors.centerIn: parent;font.pixelSize: labelFontSize;color: "black";
                    text: qsTr("后上刀2");}
            }

            Column{
                anchors.top: parent.top
                anchors.topMargin: 50
                anchors.horizontalCenter: parent.horizontalCenter
                spacing: 5

                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.BU_knife_2_PPR
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4500,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.BU_knife_2_RR
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4504,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.BU_knife_2_DPR
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4508,value);
                    }
                }
                // NumberInput{        // 前上刀1辅工_目标位置
                //     inputWidth:  180
                //     inputHeight: 50
                //     keyboard: knifeAxisKeyboard
                //     text: Cpp_PLC.BU_knife_2_ZP
                //     onEditingFinished: function(value){
                //         Cpp_PLC.write_into_tcp_Hold32(4512,value);
                //     }
                // }
                // NumberInput{        // 前上刀1辅工_目标位置
                //     inputWidth:  180
                //     inputHeight: 50
                //     keyboard: knifeAxisKeyboard
                //     text: Cpp_PLC.BU_knife_2_ZOC
                //     onEditingFinished: function(value){
                //         Cpp_PLC.write_into_tcp_Hold32(4516,value);
                //     }
                // }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.BU_knife_2_T_Acc
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4520,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.BU_knife_2_T_Dec
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4524,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.BU_knife_2_PL
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4528,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.BU_knife_2_NL
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4532,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.BU_knife_2_MLS
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4552,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.BU_knife_2_MHS
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4556,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.BU_knife_2_AS
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4560,value);
                    }
                }
                // NumberInput{        // 前上刀1辅工_目标位置
                //     inputWidth:  180
                //     inputHeight: 50
                //     keyboard: knifeAxisKeyboard
                //     text: Cpp_PLC.BU_knife_2_RTS
                //     onEditingFinished: function(value){
                //         Cpp_PLC.write_into_tcp_Hold32(4564,value);
                //     }
                // }
            }
        }
        // 第二个矩形
        Rectangle {
            width: otherRectWidth
            height: parent.height
            color: "transparent"
            // border.color: "#555"
            // //border.width: 1
            radius: 5

            Rectangle{
                width: 160;height: 50;color: "transparent";
                anchors.horizontalCenter: parent.horizontalCenter
                anchors.top: parent.top
                Text{anchors.centerIn: parent;font.pixelSize: labelFontSize;color: "black";
                    text: qsTr("前下刀1");}
            }

            Column{
                anchors.top: parent.top
                anchors.topMargin: 50
                anchors.horizontalCenter: parent.horizontalCenter
                spacing: 5

                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.FD_knife_1_PPR
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4800,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.FD_knife_1_RR
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4804,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.FD_knife_1_DPR
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4808,value);
                    }
                }
                // NumberInput{        // 前上刀1辅工_目标位置
                //     inputWidth:  180
                //     inputHeight: 50
                //     keyboard: knifeAxisKeyboard
                //     text: Cpp_PLC.FD_knife_1_ZP
                //     onEditingFinished: function(value){
                //         Cpp_PLC.write_into_tcp_Hold32(4812,value);
                //     }
                // }
                // NumberInput{        // 前上刀1辅工_目标位置
                //     inputWidth:  180
                //     inputHeight: 50
                //     keyboard: knifeAxisKeyboard
                //     text: Cpp_PLC.FD_knife_1_ZOC
                //     onEditingFinished: function(value){
                //         Cpp_PLC.write_into_tcp_Hold32(4816,value);
                //     }
                // }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.FD_knife_1_T_Acc
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4820,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.FD_knife_1_T_Dec
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4824,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.FD_knife_1_PL
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4828,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.FD_knife_1_NL
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4832,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.FD_knife_1_MLS
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4852,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.FD_knife_1_MHS
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4856,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.FD_knife_1_AS
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4860,value);
                    }
                }
                // NumberInput{        // 前上刀1辅工_目标位置
                //     inputWidth:  180
                //     inputHeight: 50
                //     keyboard: knifeAxisKeyboard
                //     text: Cpp_PLC.FD_knife_1_RTS
                //     onEditingFinished: function(value){
                //         Cpp_PLC.write_into_tcp_Hold32(4864,value);
                //     }
                // }
            }
        }
        // 第二个矩形
        Rectangle {
            width: otherRectWidth
            height: parent.height
            color: "transparent"
            // border.color: "#555"
            // //border.width: 1
            radius: 5

            Rectangle{
                width: 160;height: 50;color: "transparent";
                anchors.horizontalCenter: parent.horizontalCenter
                anchors.top: parent.top
                Text{anchors.centerIn: parent;font.pixelSize: labelFontSize;color: "black";
                    text: qsTr("前下刀2");}
            }

            Column{
                anchors.top: parent.top
                anchors.topMargin: 50
                anchors.horizontalCenter: parent.horizontalCenter
                spacing: 5

                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.FD_knife_2_PPR
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4900,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.FD_knife_2_RR
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4904,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.FD_knife_2_DPR
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4908,value);
                    }
                }
                // NumberInput{        // 前上刀1辅工_目标位置
                //     inputWidth:  180
                //     inputHeight: 50
                //     keyboard: knifeAxisKeyboard
                //     text: Cpp_PLC.FD_knife_2_ZP
                //     onEditingFinished: function(value){
                //         Cpp_PLC.write_into_tcp_Hold32(4912,value);
                //     }
                // }
                // NumberInput{        // 前上刀1辅工_目标位置
                //     inputWidth:  180
                //     inputHeight: 50
                //     keyboard: knifeAxisKeyboard
                //     text: Cpp_PLC.FD_knife_2_ZOC
                //     onEditingFinished: function(value){
                //         Cpp_PLC.write_into_tcp_Hold32(4916,value);
                //     }
                // }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.FD_knife_2_T_Acc
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4920,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.FD_knife_2_T_Dec
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4924,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.FD_knife_2_PL
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4928,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.FD_knife_2_NL
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4932,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.FD_knife_2_MLS
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4952,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.FD_knife_2_MHS
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4956,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.FD_knife_2_AS
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4960,value);
                    }
                }
                // NumberInput{        // 前上刀1辅工_目标位置
                //     inputWidth:  180
                //     inputHeight: 50
                //     keyboard: knifeAxisKeyboard
                //     text: Cpp_PLC.FD_knife_2_RTS
                //     onEditingFinished: function(value){
                //         Cpp_PLC.write_into_tcp_Hold32(4964,value);
                //     }
                // }
            }
        }
        // 第二个矩形
        Rectangle {
            width: otherRectWidth
            height: parent.height
            color: "transparent"
            // border.color: "#555"
            // //border.width: 1
            radius: 5

            Rectangle{
                width: 160;height: 50;color: "transparent";
                anchors.horizontalCenter: parent.horizontalCenter
                anchors.top: parent.top
                Text{anchors.centerIn: parent;font.pixelSize: labelFontSize;color: "black";
                    text: qsTr("后下刀1");}
            }

            Column{
                anchors.top: parent.top
                anchors.topMargin: 50
                anchors.horizontalCenter: parent.horizontalCenter
                spacing: 5

                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.BD_knife_1_PPR
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5000,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.BD_knife_1_RR
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5004,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.BD_knife_1_DPR
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5008,value);
                    }
                }
                // NumberInput{        // 前上刀1辅工_目标位置
                //     inputWidth:  180
                //     inputHeight: 50
                //     keyboard: knifeAxisKeyboard
                //     text: Cpp_PLC.BD_knife_1_ZP
                //     onEditingFinished: function(value){
                //         Cpp_PLC.write_into_tcp_Hold32(5012,value);
                //     }
                // }
                // NumberInput{        // 前上刀1辅工_目标位置
                //     inputWidth:  180
                //     inputHeight: 50
                //     keyboard: knifeAxisKeyboard
                //     text: Cpp_PLC.BD_knife_1_ZOC
                //     onEditingFinished: function(value){
                //         Cpp_PLC.write_into_tcp_Hold32(5016,value);
                //     }
                // }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.BD_knife_1_T_Acc
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5020,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.BD_knife_1_T_Dec
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5024,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.BD_knife_1_PL
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5028,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.BD_knife_1_NL
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5032,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.BD_knife_1_MLS
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5052,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.BD_knife_1_MHS
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5056,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.BD_knife_1_AS
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5060,value);
                    }
                }
                // NumberInput{        // 前上刀1辅工_目标位置
                //     inputWidth:  180
                //     inputHeight: 50
                //     keyboard: knifeAxisKeyboard
                //     text: Cpp_PLC.BD_knife_1_RTS
                //     onEditingFinished: function(value){
                //         Cpp_PLC.write_into_tcp_Hold32(5064,value);
                //     }
                // }
            }
        }
        // 第二个矩形
        Rectangle {
            width: otherRectWidth
            height: parent.height
            color: "transparent"
            // border.color: "#555"
            // //border.width: 1
            radius: 5

            Rectangle{
                width: 160;height: 50;color: "transparent";
                anchors.horizontalCenter: parent.horizontalCenter
                anchors.top: parent.top
                Text{anchors.centerIn: parent;font.pixelSize: labelFontSize;color: "black";
                    text: qsTr("后下刀2");}
            }

            Column{
                anchors.top: parent.top
                anchors.topMargin: 50
                anchors.horizontalCenter: parent.horizontalCenter
                spacing: 5

                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.BD_knife_2_PPR
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5100,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.BD_knife_2_RR
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5104,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.BD_knife_2_DPR
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5108,value);
                    }
                }
                // NumberInput{        // 前上刀1辅工_目标位置
                //     inputWidth:  180
                //     inputHeight: 50
                //     keyboard: knifeAxisKeyboard
                //     text: Cpp_PLC.BD_knife_2_ZP
                //     onEditingFinished: function(value){
                //         Cpp_PLC.write_into_tcp_Hold32(5112,value);
                //     }
                // }
                // NumberInput{        // 前上刀1辅工_目标位置
                //     inputWidth:  180
                //     inputHeight: 50
                //     keyboard: knifeAxisKeyboard
                //     text: Cpp_PLC.BD_knife_2_ZOC
                //     onEditingFinished: function(value){
                //         Cpp_PLC.write_into_tcp_Hold32(5116,value);
                //     }
                // }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.BD_knife_2_T_Acc
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5120,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.BD_knife_2_T_Dec
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5124,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.BD_knife_2_PL
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5128,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.BD_knife_2_NL
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5132,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.BD_knife_2_MLS
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5152,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.BD_knife_2_MHS
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5156,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth:  180
                    inputHeight: 50
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.BD_knife_2_AS
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5160,value);
                    }
                }
                // NumberInput{        // 前上刀1辅工_目标位置
                //     inputWidth:  180
                //     inputHeight: 50
                //     keyboard: knifeAxisKeyboard
                //     text: Cpp_PLC.BD_knife_2_RTS
                //     onEditingFinished: function(value){
                //         Cpp_PLC.write_into_tcp_Hold32(5164,value);
                //     }
                // }
            }

        }
    }


    Rectangle{
        width: 835
        height: 70
        radius: 5
        // // //border.width: 1
        anchors.bottom: knifeParameterWindow.bottom
        anchors.left: knifeParameterWindow.left
        anchors.leftMargin: 230
        color: "transparent"

        Row{
            anchors.verticalCenter: parent.verticalCenter

            Rectangle{
                width: 835/4
                height: 60
                // // //border.width: 1
                color: "transparent"

                Text{
                    anchors.centerIn: parent
                    font.pixelSize: labelFontSize
                    text: qsTr("最大距离")
                }

            }
            Rectangle{
                width: 835/4
                height: 60
                // // //border.width: 1
                color: "transparent"

                NumberInput{        // 刀盘最大距离
                    inputWidth:  180
                    inputHeight: 50
                    anchors.centerIn: parent
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.knife_Max_Distance
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5740,value);
                    }
                }

            }
            Rectangle{
                width: 835/4
                height: 60
                // // //border.width: 1
                color: "transparent"

                Text{
                    anchors.centerIn: parent
                    font.pixelSize: labelFontSize
                    text: qsTr("最小距离")
                }

            }
            Rectangle{
                width: 835/4
                height: 60
                // // //border.width: 1
                color: "transparent"

                NumberInput{        // 刀盘最小距离
                    inputWidth:  180
                    inputHeight: 50
                    anchors.centerIn: parent
                    keyboard: knifeAxisKeyboard
                    text: Cpp_PLC.knife_Min_Distance
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5744,value);
                    }
                }

            }


        }

    }






}
